package com.company.IO;

import java.io.*;

public class IO {
    public IO() throws IOException {
//        OutPutFile opf = new OutPutFile();
        ReaderIO rdio = new ReaderIO();
        WriterIO wrio = new WriterIO();
    }
}

class OutPutFile {
    public OutPutFile() throws IOException {
        OutputStream ops = new FileOutputStream("output.txt");
        byte[] b1 = "Hello".getBytes("UTF-8");
        ops.write(b1);
        byte[] b2 = "你好".getBytes("UTF-8");
        ops.write(b2);
        ops.close();
    }
}

class ZipOutPutStream {
    public ZipOutPutStream() throws IOException {

    }
}

class ReaderIO {
    public ReaderIO() throws IOException {
        Reader reader = new FileReader("readme.txt");
        int n;
        while ((n = reader.read()) != -1) {
            System.out.println((char)n);
        }
        reader.close();
    }
}
class WriterIO {
    public WriterIO() throws IOException {
        Writer writer = new OutputStreamWriter(new FileOutputStream("output.txt"));
        writer.write("ldq");
        writer.write("niubsi");
        writer.close();
    }
}